<link rel="stylesheet" type="text/css" href="modules/InnoForum/pnjavascript/jquery.ad-gallery.1.2.4/jquery.ad-gallery.css">
<script type="text/javascript" src="modules/InnoForum/pnjavascript/jquery.ad-gallery.1.2.4/jquery.ad-gallery.js"></script>
<script type="text/javascript">
$(function() {
	$('img.image1').data('ad-desc', 'Whoa! This description is set through elm.data("ad-desc") instead of using the longdesc attribute.<br>And it contains <strong>H</strong>ow <strong>T</strong>o <strong>M</strong>eet <strong>L</strong>adies... <em>What?</em> That aint what HTML stands for? Man...');
	$('img.image1').data('ad-title', 'Title through $.data');
	$('img.image4').data('ad-desc', 'This image is wider than the wrapper, so it has been scaled down');
	$('img.image5').data('ad-desc', 'This image is higher than the wrapper, so it has been scaled down');
	var galleries = $('.ad-gallery').adGallery();
	$('#switch-effect').change(
		function() {
			galleries[0].settings.effect = $(this).val();
			return false;
		}
	);
	$('#toggle-slideshow').click(
		function() {
			galleries[0].slideshow.toggle();
			return false;
		}
	);
	$('#toggle-description').click(
		function() {
			if(!galleries[0].settings.description_wrapper) {
				galleries[0].settings.description_wrapper = $('#descriptions');
			} else {
				galleries[0].settings.description_wrapper = false;
			}
			return false;
		}
	);
});
</script>
<div class="border_top">
	<div class="border_top_l"></div>
	<div class="border_top_c"></div>
	<div class="border_top_r"></div>
</div>
<div class="body">
<!-- ******************************************Start nav****************************************** -->
		<div id="breadcrumb">
			<div class="breadcrumb_l"></div>
			<div class="breadcrumb_c">
				<ul>
						<li>
							<a href="<!--[pngetbaseurl]-->" >
								<strong>หน้าแรก</strong>
							</a>
						</li>
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' ]-->" >
								<strong><!--[pnml name='_INNOFORUM_USER_ViewAllTopic']--></strong>
							</a>
						</li>
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$extendResult.type.id ]-->"
								title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']-->&nbsp;<!--[$extendResult.type.name]-->">
								<strong><!--[$extendResult.type.name]--></strong>
							</a>
						</li>
						<!--[getcategory2_by_topic_id topic_id=$extendResult.topics.id]-->
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id ]-->" 
								title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$category_name]-->">
								<strong><!--[$category_name]--></strong>
							</a>
						</li>
						<!--[getsubcategory_by_topic_id topic_id=$extendResult.topics.id]-->				
						<!--[if $subcategory_id]-->				
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id  ]-->" 
								title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$subcategory_name]-->">
								<strong><!--[$subcategory_name]--></strong>
							</a>	
							<!--[assign var="post_subcategory_name" value=subcategory_name]-->
						</li>
						<!--[/if]-->
						<!--[getbrand_by_topic_id topic_id=$extendResult.topics.id]-->
						<!--[if $brand_id]-->	
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id brand_id=$brand_id]-->" 
								title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$brand_name]-->">
								<strong><!--[$brand_name]--></strong>
							</a>	
						</li>
						<!--[/if]-->
						<!--[getmodel_by_topic_id topic_id=$extendResult.topics.id]-->				
						<!--[if $model_id]-->					
						<li>
							<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id model_id=$model_id]-->" 
								title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$model_name]-->">
								<strong><!--[$model_name]--></strong>
							</a>	
						</li>		
						<!--[/if]-->				
				</ul>
			</div>
			<div class="breadcrumb_r"></div>
			</div>	
	<!-- ******************************************end nav****************************************** -->	
	<div class="product_view">
<!-- ******************************************start topic****************************************** -->	
			<div id="topic">
			<div class="topic_l"></div>
			<div class="topic_c">
				<h1>
					<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$extendResult.topics.id]-->">
					<!--[$extendResult.topics.title]--></a>
				</h1>
			</div>
			<div class="topic_r"></div>
			</div>
<!-- ******************************************end topic****************************************** -->	
		<div class="product_left">
			<!--[topic_validate topic_id=$smarty.get.id]-->
			<!--[if $topic_validate == 1]-->
				<!-- category & subcategory -->
				<!--[if not empty($_ERROR)]-->
				<div class="grid_23">
					<h1>
						<img align="absmiddle" src="<!--[modulepath]-->/pnimages/warning.png">&nbsp;<!--[$_ERROR]-->
					</h1>
				</div>
				<!-- <div class='error-block'><img align="absmiddle" src="<!--[modulepath]-->/pnimages/warning.png"></div> -->
			<!--[/if]-->
			<!-- Template -->
			<!--[include file='user_view_header.htm']-->
<!-- ******************************************Start gallery****************************************** -->
			<div id="gallery" class="ad-gallery">
				<div class="ad-image-wrapper">
				</div>
				<div class="ad-controls">
				</div>
				<div class="ad-nav">
					<div class="ad-thumbs">
						<ul class="ad-thumb-list">
							<!--[check_image_directory_path id=$smarty.get.id]-->

							<!-- Other Image -->
							<!--[counter start=0 assign='image_index']-->
							<!--[foreach from=$extendResult.images item=image]-->
								<li>
									<a href="<!--[$large_directory_path]--><!--[$image.filename]-->">
										<img src="<!--[$medium_directory_path]--><!--[$image.filename]-->" width="75" height="56"  title="<!--$extendResult.topics.title-->">
									</a>
								</li>
								<!--[counter]-->
							<!--[/foreach]--> 
						</ul>
						
					</div>
				</div>
			</div>
			<div id="descriptions"></div>
<!-- ******************************************End gallery****************************************** -->	
		</div>
		
		<div class="product_right">
			<!--[include file='user_view_header2.htm']-->
				<div class="product_detail_left">
				<table>
					<tr>
						<td><i>รหัสประกาศ </i></td>
						<td><strong><!--[$extendResult.topics.ref_id]--></strong></td>
					</tr>
					<tr>
						<td><i>หมวดหมู่หลัก </i></td>
						<td><strong><!--[$category_name]--></strong></td>
					</tr>
					<tr>
						<td><i>หมวดหมู่ย่อย</i></td>
						<td><strong><!--[$subcategory_name]--></strong></td>
					</tr>
					<tr>
						<td><i>ยี่ห้อ</i></td>
						<td>
							<strong><!--[$brand_name]--></strong>
						</td>
					</tr>
					<tr>
						<td><i>รุ่น</i></td>
						<td>
							<strong><!--[$model_name]--></strong>
						</td>
					</tr>
					<tr>
						<td><i>ต้องการ</i></td>
						<td><strong><!--[$extendResult.type.name]--></strong></td>
					</tr>
					<tr>
						<td><i>สภาพ</i></td>
						<td><strong><!--[if $extendResult.topics.productstate eq intval('1')]--><!--[pnml name='_INNOFORUM_USER_FirstHand']--><!--[else]--><!--[pnml name='_INNOFORUM_USER_2ndHand']--><!--[/if]--></strong></td>
					</tr>
					<tr>
						<td><i>สี</i></td>
						<td><strong><!--[$extendResult.topics.product_color]--></strong></td>
					</tr>
					<tr>
						<td><i>ราคา</i></td>
						<td>
						<strong>
							<!--[if  is_numeric($extendResult.topics.price)]-->
								<!--[if $extendResult.topics.price eq '0' ]-->                    
									<!--[pnml name='_INNOFORUM_USER_NoPrice']-->
								<!--[else]-->             
									<!--[$extendResult.topics.price|number_format:0]-->&nbsp;บาท
								<!--[/if]-->  
							<!--[else]-->
								<!--[$extendResult.topics.price]-->
							<!--[/if]-->            
						</strong>
						</td>
					</tr>
					<tr>
						<td><i><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_Location']--></i></td>
						<td><strong><!--[region_from_province province=$extendResult.topics.province ]--></strong></td>
					</tr>
					<tr>
						<td><i><!--[pnml name='_INNOFORUM_USER_LIST_POSTS_PostDate']--></i></td>
						<td><strong><!--[date_thai_format date=$extendResult.topics.cr_date usedate=true usetime=true]--></strong> </td>
					</tr>
				</table>
				</div>
				<div class="product_detail_right">
						<!--[get_gid_by_uid uid=$extendResult.topics.cr_uid]-->
							<span class="child1">
								<h2><!--[$extendResult.type.name]--></h2>       
									<!--[if  is_numeric($extendResult.topics.price)]-->
										<!--[if $extendResult.topics.price eq '0' ]-->                    
											<h2><!--[pnml name='_INNOFORUM_USER_NoPrice']--></h2>
										<!--[else]-->             
											<h2><!--[$extendResult.topics.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']--></h2>
										<!--[/if]-->  
									<!--[else]-->
										<h2><!--[$extendResult.topics.price]--></h2>
									<!--[/if]-->    
								<!--[if  $extendResult.topics.province]-->    
									<h3><!--[region_from_province province=$extendResult.topics.province ]--></h3>     
								<!--[/if]-->  
							</span>  
							<span class="child2">
							<strong>ผู้ลงประกาศ</strong>
								<h3><a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='Topics' user_id=$extendResult.topics.cr_uid]-->"><!--[$extendResult.topics.name]--></a></h3>
								<a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='Topics' user_id=$extendResult.topics.cr_uid]-->">ประกาศทั้งหมดของผู้ลงประกาศ</a>
							</a>
							</span>
							<span class="child3">
							<p><img src="<!--[modulepath]-->/pnimages/telephone.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.phone1]--></p>
							<p><img src="<!--[modulepath]-->/pnimages/email.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.email]--></p>
							<p><img src="<!--[modulepath]-->/pnimages/world.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<a href="<!--[$extendResult.topics.url]-->" target="_blank"><!--[$extendResult.topics.url|mb_truncate:30:"..."]--></a></p>
							<p><img src="<!--[modulepath]-->/pnimages/house.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[$extendResult.topics.address1]--> <!--[$extendResult.topics.city]--> <!--[$extendResult.topics.state]--> <!--[$extendResult.topics.zip]--></p>
							<p><img src="<!--[modulepath]-->/pnimages/server.png" width="16px" height="16px" align="absmiddle"/>&nbsp;<!--[hidden_ip ip=$extendResult.topics.ipaddress]--></p>
							</span>
			<!--[/if]-->
				</div>  
				<div class="social_network"></div>
		</div>
	</div>
	<div class="product_view2">
	<!--[include file='user_ext_cardetail.htm']-->
	</div>
	<div class="comment">
		<div id="topic">
		<div class="topic_l topic_l3"></div>
		<div class="topic_c topic_c3"><h3>แสดงความคิดเห็น&nbsp;</h3>
		</div>
		<div class="topic_r topic_r3"></div>
		</div>
		<!--[blockposition name=facebook_comment]-->
	</div>
	
			
</div><!--body-->

<div class="border_bottom">
	<div class="border_bottom_l"></div>
	<div class="border_bottom_c"></div>
	<div class="border_bottom_r"></div>
</div>